<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use App\Models\Traits\IntegralRuleShowHelper;
use Illuminate\Database\Eloquent\Model;

class IntegralRule extends Model
{
	use HasDateTimeFormatter,IntegralRuleShowHelper;
    protected $table = 'integral_rules';
    public $timestamps = false;
    const REGISTER = "register";
    const SIGN_IN = "sign_in";
    const PASS_DAY = "pass_day";
    const RATIO    = "ratio";
    public static $keyMap = [
        self::REGISTER => "注册赠积分",
        self::SIGN_IN  => "签到赠送积分",
        self::PASS_DAY => "卡券过期天数",
        self::RATIO  => "兑换比例,多少元等于1积分",
    ];

}
